<script setup lang="ts"></script>
<template>
  <!-- 页面右侧结构 -->
  <div class="manger-address">
    <div class="address-top">
      <p>收获地址<span>(地址最多<span class="top-color">10</span>条,还能保存<span class="top-color">7</span>条)</span></p>
      <div class="right-link"><a href="javascript:;"><i class="right-i iconfont icon-add"></i>新建地址</a></div>
    </div>
    <div class="address-detail">
      <ul>
        <li class="address-title">
          <div class="title-left">
            <p class="left-person">收<i class="i-em"></i>货<i class="i-em"></i>人:<span class="person-common"> 小兔子妹妹</span></p>
            <p class="left-text">联系方式:<span class="person-common"> 180****1849</span></p>
            <p class="left-address">收货地址:<span class="person-common"> 北京海淀区黄平路金燕龙科研4层</span></p>
          </div>
          <div class="title-right">
            <div v-if="false"><button class="right-address">默认地址</button></div>
            <div v-else><button class="right-active">设为默认</button></div>
            <div><button class="right-one">编辑</button><button class="right-two">删除</button></div>
          </div>
        </li>
        <li class="address-title">
          <div class="title-left">
            <p class="left-person">收<i class="i-em"></i>货<i class="i-em"></i>人:<span class="person-common"> 小兔子妹妹</span></p>
            <p class="left-text">联系方式:<span class="person-common"> 180****1849</span></p>
            <p class="left-address">收货地址:<span class="person-common"> 北京海淀区黄平路金燕龙科研4层</span></p>
          </div>
          <div class="title-right">
            <div><button class="right-address">默认地址</button></div>
            <div><button class="right-one">编辑</button><button class="right-two">删除</button></div>
          </div>
        </li>
      </ul>
    </div>
  </div>
</template>
<style lang="less">
@import url(../Order/font/iconfont.css);
.manger-address {
  width: 995px;
  height: 100%;
  background-color: #fff;
  .address-top {
    height: 60px;
    margin: 0px 31px 23px 24px;
    border-bottom: 1px solid #F5F5F5;
    line-height: 48px;
    p {
      float: left;
      font-size: 16px;
      text-align: center;
      color: #333;
      span {
        font-size: 14px;
        color: #666;
        .top-color {
          color: #5EB69C;
        }
      }
    }
    .right-link {
      float: right;
      a {
        text-decoration: none;
        font-size: 14px;
        color: #27BA9B;
        vertical-align: middle;
        .right-i {
        font-size: 20px;
        vertical-align: middle;
        color: #27BA9B;
      }
      }
    }
  }
  .address-detail {
    width: 924px;
    height: 100%;
    box-sizing: border-box;
    margin-left: 29px;
    ul {
      width: 924px;
      height: 119px;
      .address-title {
        display: flex;
        justify-content: space-between;
        border: 1px solid #F5F5F5;
        margin-bottom: 20px;
        .title-left {
          margin-left: 20px;
          .left-person {
            margin-top: 17px;
            margin-bottom: 12px;
            font-size: 14px;
              color: #999;
            .i-em {
              display: inline-block;
              width: 0.5em;
            }
            .person-common {
              font-size: 14px;
              color: #333;
            }
          }
          .left-text {
            font-size: 14px;
            color: #999;
            margin-bottom: 12px;
            .person-common {
              font-size: 14px;
              color: #333;
            }
          }
          .left-address {
            font-size: 14px;
            color: #999;
            margin-bottom: 20px;
            .person-common {
              font-size: 14px;
              color: #333;
            }
          }
        }
        .title-right {
          margin-right: 29px;
          .right-address {
            width: 100px;
            height: 32px;
            background-color: #27ba9b;
            color: #fff;
            font-size: 14px;
            text-align: center;
            border: none;
            border-radius: 4px;
            margin-top: 31px;
            margin-right: 29px;
          }
          .right-active {
            width: 100px;
            height: 32px;
            text-align: center;
            background-color: #F5F5F5;
            border: 1px solid solid rgba(228,228,228,1);
            border-radius: 4px;
            font-size: 14px;
            color: #666;
            border: none;
            margin-top: 31px;
            margin-right: 29px;
          }
          .right-one {
            border: none;
            color: #27BA9B;
            background-color: #fff;
            font-size: 14px;
            margin-left: 8px;
            margin-right: 3px;
            margin-top: 10px;
          }
          .right-two {
            border: none;
            background-color: #fff;
            color: #27BA9B;
            font-size: 14px;
          }
        }
      }
    }
 }
}
</style>
